<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>兄弟啊,还好吗?</title>
    <script src="./res/jquery-3.5.1.min.js"></script>
    <style>
        .box {
            display: block;
            border: 2px solid #abcdef;
            color: #331258;
            padding: 5px;
            margin: 15px;
        }
    </style>
</head>

<body>
    <p class="item">p01</p>
    <p class="item ">p02</p>
    <p class="item active">p03</p>
    <p class="item">p04</p>
    <p class="item">p05</p>
    <p class="item active">p06</p>
</body>

</html>
<script>
    $(function(e) {
        $('.item').filter('.active').each((index, element) => {
            window.console.log(element);
        });
    });
</script>